<template>
  <!--模板-->
  <h1>测试 BaseModel </h1>
  person：{{ person }}
</template>


<script setup lang="ts" generic="T extends {name: string}">
  import { reactive } from 'vue'
  import { BaseModel } from '../../../lib/main'
   
  const model = defineModel()
  const props = defineProps({
    
  })

  const person = new BaseModel(() => {
    return {
      name: '基础类型',
      age:20
    }
  })

  console.log('person', person)
  console.log('person--toRaw', person.$toRaw())

</script>